<?php
include_once("../common.php");
if(isset($_GET['id']) && isset($_SESSION['idusers'])){
	$c = connect();
	mysql_query("INSERT INTO subscribers (users_idusers, events_idevents, role) 
		VALUES ('".$_SESSION['idusers']."','".$_GET['id']."','Participant')");
	mysql_close($c);
	echo "Registered";
}
?>
